import cn.spring.HelloSpring;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testHelloSpring {
    @Test
    public void testHelloSpring(){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        HelloSpring helloSpring1=(HelloSpring) context.getBean("helloSpring");
        helloSpring1.print();
    }
}
